@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: "SiYuan", "黑体", "Microsoft YaHei", Arial;
    overflow: hidden;
}

html * {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
@font-face {
    font-family: "SiYuan";
    src: url('./siyuan-subset.otf') format("woff2"),
    url('./siyuan-subset.otf') format("woff");
    font-weight: normal;
    font-style: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
}

img {
    display: block;
    width: 100%;
    pointer-events: none;
}
img.show, img.last-show-img {
    pointer-events: auto;
}
.layui-m-layerbtn span, .layui-m-layercont {
    font-size: 28px !important;
}
.layui-m-layer-msg .layui-m-layercont {
    padding: 12px 20px !important;
}
.layui-m-layercont {
    line-height: 30px !important;
}

/*默认320 iphone5  */
/*rem=screen.width/20 */
html {
    font-size: 32px;
}

/*iphone6*/
@media (min-device-width: 375px) {
    html {
        font-size: 37.5px;
    }
}

/*iphone6 plus*/
@media (min-device-width: 414px) {
    html {
        font-size: 41.4px;
    }
}


input {
    border: none;
    outline: none;
}

select {
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
/*ani*/
@-webkit-keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes pulse{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}50%{-webkit-transform:scale3d(1.05,1.05,1.05);transform:scale3d(1.05,1.05,1.05)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}
@-webkit-keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}
@-webkit-keyframes zoomIn {
    0% {
      opacity: 0;
      -webkit-transform: scale3d(.3, .3, .3);
      transform: scale3d(.3, .3, .3);
    }

    50% {
      opacity: 1;
    }
  }

  @keyframes zoomIn {
    0% {
      opacity: 0;
      -webkit-transform: scale3d(.3, .3, .3);
      transform: scale3d(.3, .3, .3);
    }

    50% {
      opacity: 1;
    }
  }

.loading {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: url('../img/loading-bg.png') no-repeat center #c80e0e;
    background-size: 100% 100%;
}

.page-loading-box {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background: url('../img/loading-bg.png') no-repeat center #c80e0e;
    background-size: 100% 100%;
}

.content-background {
    position: absolute;
    top: 14%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80%;
    height: 24rem;
    background: url('../img/content.png') no-repeat center;
    background-size: 100% 100%;
}
.start-background {
    position: absolute;
    top: 14%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80%;
    height: 24rem;
    border-radius: 0.1rem;
}
.start-background img {
    border-radius: 12px;
}
.start-btn, .save-text {
    width: 7.3rem;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12%;
    margin: 0 auto;
}

.load-img {
    width: 35%;
    position: absolute;
    top: 6%;
    left: 10%;
    /*margin: 0 auto;*/
    z-index: 10;
}
.decorate-1 {
    width: 40%;
    position: absolute;
    top: -9%;
    left: 47.2%;
    z-index: 10;
}
.decorate-2 {
    width: 17%;
    position: absolute;
    bottom: 6%;
    right: -7%;
    z-index: 9;
}
.load-tip {
    position: absolute;
    right: 10%;
    bottom: 5%;
    font-size: 0.6rem;
    font-weight: 500;
    color: #fff;
}
.loading-content {
    position: absolute;
    width: 100%;
    top: 35%;
    left: 0;
    z-index: 30;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.loading-content-img {
    width: 5rem;
    margin-bottom: 1.5rem;
}
.loading-content-img img {
    width: 100%;
    animation: pulse 2s linear infinite;
    -webkit-animation: pulse 2s linear infinite;
}
.loading-content-text {
    font-size: 0.875rem;
}
.load-progress {
    width: 50%;
    position: absolute;
    left: 25%;
    top: 55%;
    z-index: 12;
}
.load-progress p {
    height: 0.2rem;
    background: #fbd8a6;
    border-radius: 0.2rem;
    /*padding: 0.1rem;*/
}
.load-progress p span {
    display: block;
    width: 50%;
    height: 0.2rem;
    border-radius: 0.1rem;
    background: #fff;
    /*background: url(../img/load-bar.png) no-repeat center;*/
    /*background-size: 130% 1.4rem;*/
}

.load-num {
    padding-left: 10px;
}

.container {
    width: 100%;
    height: 100%;
    /*opacity: 0;*/
    overflow: hidden;
}
.container .page {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}
.layers {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
}
.index-page {
    /*display: none;*/
    width: 100%;
    height: 100%;
    position: relative;
    background: url('../img/theme-bg.png') no-repeat center #c80e0e;
    background-size: 100% 100%;
}

.page {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  right: 0;
  display: none;
}

.page1 {
  background-color: #fffbf8;
}
.page2, .page3, .page4 {
  background: url('../img/theme-bg.png') no-repeat center #c80e0e;
  background-size: 100% 100%;
}

.img-pos {
  position: absolute;
}

.img1 {
  width: 34%;
  left: 33%;
  top: 32%;
  -webkit-animation: zoomIn 2s;
  animation: zoomIn 2s;
  /* display: none; */
}
.img2, .img3 {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
.img3 {
  background-image: url('../img/snow.png');
  background-repeat: no-repeat;
  -webkit-animation: snowAni 25s linear infinite;
  animation: snowAni 25s linear infinite;
}
@keyframes snowAni {
  0% {
    background-position: 0 -2000px;
  }
  100% {
    background-position: 0 0;
  }
}
.img4 {
  width: 54.5%;
  left: 23%;
  top: 58%;
}
.img5 {
  width: 53.6%;
  left: 14.5%;
  top: 50%;
}
@keyframes flashAni {
  0%, 100% {
    opacity: 0.2;
  }
  20%, 60% {
    opacity: 0.6;
  }
  40% {
    opacity: 1
  }
}
@-webkit-keyframes flashAni {
  0%, 100% {
    opacity: 0.2;
  }
  20%, 60% {
    opacity: 0.6;
  }
  40% {
    opacity: 1
  }
}
.img5 img {
  -webkit-animation: flashAni 6s linear infinite;
  animation: flashAni 6s linear infinite;
}
.img6 {
  width: 53.6%;
  left: 43%;
  top: 60%;
}
.img6 img {
  -webkit-animation: flashAni 4s linear infinite;
  animation: flashAni 4s linear infinite;
}
.img7 {
  width: 100%;
  line-height: 30px;
  font-size: 0.5rem;
  color: #FFF;
  text-align: center;
  left: 0;
  top: 88%;
  -webkit-animation: flash 4.5s linear infinite;
  animation: flash 4.5s linear infinite;
}



::-webkit-input-placeholder {
    color: #fff
}
.text-input > input, .text-input > p {
    width: 100%;
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    font-family: "黑体";
    color: #fff;
    text-indent: 12px;
    margin-bottom: 22px;
    background: none;
}
.main > p {
    position: relative;
}
#date {
    width: 100%;
    height: 60px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
.change-btn {}
.sure-btn {}

.bgmusic {
  width: 1.2rem;
  height: 1.2rem;
  position: absolute;
  top: 6%;
  right: 10%;
  z-index: 100;
}

.share-page, .times-tips, .layer-tips, .day-tips, .has-prise, .no-prise {
    background: rgba(0, 0, 0, 0.8);
}
#select-content {
    display: none;
}
#start-content {
    display: none;
}

.select-wrap {
    /*width: 2rem;*/
    padding-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}
.select-tit {
  font-size: 0.8rem;
  letter-spacing: 0.08rem;
}
.select-box {
    margin-top: 0.4rem;
    padding: 0.5rem;
    border: 1px solid #e7e3e1;
    box-shadow: inset 0 0 5px rgba(231, 227, 225, 0.9);
    border-radius: 0.2rem;
}
.switch-text {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.3rem;
}

.switch-bth .img-box {
    width: 6rem;
}

.blessing-text {
    font-size: 0.6rem;
    letter-spacing: 0.09rem;
    line-height: 1.5;
    color: #adadad;
    padding-left: 0.7rem;
    padding-bottom: 0.4rem;
}
.blessing-text p:first-child {
    position: relative;
}
.blessing-text p:first-child::before{
    content: '';
    position: absolute;
    left: -0.7rem;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 50%;
    width: 0.23rem;
    height: 0.23rem;
    border: 0.1rem solid #e2e2e2;
    background: #e2e2e2;
}
.blessing-text-active {
    color: #000;
}
.blessing-text-active p:first-child::before {
    width: 0.23rem;
    height: 0.23rem;
    border: 0.1rem solid #e2e2e2;
    background: #000000;
}
#box-1, #box-2 {
    display: none;
}
.save-text {
    position: fixed;
    bottom: 11%;
}
#preview-content {
    display: none;
}
.preview-content {
    position: absolute;
    top: 16%;
    left: 11.5%;
    /*right: 0;*/
    /*margin: 0 auto;*/
    width: 80%;
    height: 24rem;
}
.content-text {
    font-size: 0.625rem;
    text-align: center;
    padding-right: 0.2rem;
}
.content-text p {
    color: #000000;
    line-height: 1.5;
    letter-spacing: 0.2rem;
}
.ope-box {
    position: absolute;
    bottom: 13%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 16rem;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.ope-box img{

}
.button-style {
    width: 7.3rem;
}
#preview {
    display: none;
}
.mod-pic {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
    /* display: none; */
}
.show-pic {
  pointer-events: auto !important;
}
.from-box {
    position: absolute;
    right: 23%;
    top: 67%;
    width: 4.34rem;
    height: 0.45rem;
    background: url('../img/from.png') no-repeat center center;
    background-size: 100% 100%;
}
.from-box input{
    position: absolute;
    z-index: 10;
    right: -13%;
    top: -80%;
    display: inline-block;
    width: 3.34rem;
    box-sizing: border-box;;
    border: none;
    background:none;
    outline: none;
    font-size: 0.5rem;
    color: #000000;
    /*font-family: "SiYuan";*/
    text-align: left;
}
.from-box input::-webkit-input-placeholder{
    /*font-family: "SiYuan";*/
    font-size: 0.4rem;
    color: #666666;
    text-align: left;
}
